package org.chen.spring.cloud.finchley.service.data;

import org.chen.spring.cloud.finchley.service.data.impl.ProviderServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author chensj
 * @date 2020-02-08 14:01
 */
@FeignClient(value = "ch6-3-provider-service", fallback = ProviderServiceImpl.class)
public interface ProviderService {
  /**
   * 获取服务提供信息
   *
   * @return
   */
  @RequestMapping(value = "/getDashboard", method = RequestMethod.GET)
  List<String> getProviderData();
}
